Skip to content

fix(hero): centre the home hero crystal so it spins in place - #60

Merged
Bissbert merged 1 commit into
mainfrom
fix/hero-crystal-centering
Jul 17, 2026
Merged

fix(hero): centre the home hero crystal so it spins in place#60
Bissbert merged 1 commit into
mainfrom
fix/hero-crystal-centering

Conversation

@Bissbert

Copy link
Copy Markdown
Contributor

Summary

  • The auto-rotating hero crystal's geometry was never centred on its centroid, so it orbited the group origin and drifted off-centre in its specimen plate at some rotation angles.
  • Added geometry.center() + computeBoundingSphere() (matching the working Crystal3DViewer) and removed the compensating hardcoded <Center position={[0,0.15,0]}> offset.

Test plan

  • Crystal stays centred across a full rotation
  • Reduced-motion mode: static and centred
  • Both themes checked
  • Mobile viewport checked
  • No console errors
  • Build clean

The auto-rotating hero crystal's geometry was never centred on its
centroid, so it orbited the group origin and drifted off-centre in
its specimen plate at some rotation angles (often off centre). Added
geometry.center() + computeBoundingSphere() (matching the working
Crystal3DViewer) and removed the compensating hardcoded
<Center position={[0,0.15,0]}> offset.

Browser-verified: crystal stays centred across a full rotation,
reduced-motion static+centred, both themes + mobile OK, no console
errors. Build clean.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying gemmology-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: f55c631
Status:🚫  Build failed.

View logs

@github-actions

Copy link
Copy Markdown

🚀 Preview deployed to: https://d282692c.gemmology-dev.pages.dev

@Bissbert
Bissbert merged commit 5702aaf into main Jul 17, 2026
5 of 6 checks passed
@Bissbert
Bissbert deleted the fix/hero-crystal-centering branch July 17, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant